package com.test.webdemo.servlet;

import java.text.SimpleDateFormat;
import java.util.Date;

public class RequestTracker {
    private static final SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss.SSS");

    public static void log(String message) {
        String timestamp = sdf.format(new Date());
        String threadName = Thread.currentThread().getName();
        System.out.printf("[%s] [%s] %s\n", timestamp, threadName, message);
    }

    public static void logStep(String stepName) {
        log("===> " + stepName);
    }
}
